﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class gianhang
    {
        public string MaGH { get; set; }
        public string TenGH { get; set; }
        public string Vitri { get; set; }
        public string MaNql { get; set; }
        public gianhang gianhangIDataReader(IDataReader dr)
        {
            gianhang obj = new gianhang();
            obj.MaGH = (dr["maGH"] is DBNull) ? string.Empty : dr["maGH"].ToString();
            obj.TenGH = (dr["tenGH"] is DBNull) ? string.Empty : dr["tenGH"].ToString();
            obj.Vitri = (dr["vitri"] is DBNull) ? string.Empty : dr["vitri"].ToString();
            obj.MaNql = (dr["maNQL"] is DBNull) ? string.Empty : dr["maNQL"].ToString();
            return obj;
        }
    }
}
